<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Group
 *
 * @author Huỳnh
 */
class Control extends Zend_Db_Table_Abstract {
    //put your code here
    protected $_name = 'user_control';
    protected $_primary = 'control_id';

    public function getAllControl(){
		return $this->fetchAll($this->select());
    }
    
    public function getControlById($id){
        return $this->fetchRow($this->select()->where('control_id = ?', $id));
    }
}
?>
